//
//  SegView.h
//  ProjectsOne
//
//  Created by iOS开发 on 2018/7/9.
//  Copyright © 2018年 iOS开发. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SegViewDelegate <NSObject>
// 点击标题切换模块
- (void)clickSegIndex:(NSInteger)index;
@end

@interface SegCell : UICollectionViewCell
@property (nonatomic, strong) UILabel *label;
- (void)selectCell:(BOOL)isSelect title:(NSString *)str;
@end

@interface SegView : UIView

@property (nonatomic, weak) id<SegViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame Title:(NSArray *)titleArr;
- (void)segAction:(NSInteger)idx;

@end
